package com.dailyblue.java.boot.mybatisplus.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "user",excludeProperty = "userAge")
public class User implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String userCode; //usercode  默认是user_code
    private String password;
    private String nickname;
    private Character gender;
    private String phone;
    private String birthday;
    private String job;
    private String portrait;
    @TableField("creationtime")
    private String creationTime;
    @TableField("schoolno")
    private Integer schoolNo;
    @TableLogic(delval = "0",value = "1")
    private Integer state;
    // 这个属性在user表中没有对应的列
    @TableField(exist = false)
    private Integer userAge;
}
